]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
test-tool: Add option to run without animations
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 27 Nov 2025 15:45:35 +0000 (16:45 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 27 Nov 2025 18:24:01 +0000 (19:24 +0100)
We currently force animations, so the test reflect the typical
usage even in environments without hardware acceleration.

However testing with animations disabled can be useful as well,
so allow that with a CLI option.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3986>

src/gnome-shell-test-tool.in

index 43348f126cb90c8eefe6b52ee6a285d3006ded70..c6c31436b343bf4236e48fa36765e98c37ef368d 100755 (executable)
@@ -61,7 +61,10 @@ def start_shell(xdg_home, wrap=None, perf_output=None):
     args.append('--automation-script')
     args.append(options.script)
 
-    args.append('--force-animations')
+    if options.disable_animations:
+        gsettings_config.add('org/gnome/desktop/interface', 'enable-animations', 'false')
+    else:
+        args.append('--force-animations')
 
     if options.devkit or options.headless:
         if options.devkit:
@@ -234,6 +237,9 @@ parser.add_argument("--headless", action="store_true",
 parser.add_argument("--hotplug", action="store_true",
                     help="Start without a virtual monitor attached")
 
+parser.add_argument("--disable-animations", action="store_true",
+                    help="Run with animations disabled")
+
 options = parser.parse_args()
 
 if options.extra_filter is None: